<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>模块化</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script type="text/javascript" src="test-module.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            testModule.init();
            testModule.initEvent();
        });
    </script>
</head>

<body>

<p>JavaScript 模块化</p>

<input id="button1" type="button" value="点击"/>

</body>
</html>